package kxfang.com.common.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by ZJ
 * on 2020/5/30
 * Class Content 顶部推荐
 */
public class TopListModel implements Parcelable {
    /**
     * Name : string
     * ID : string
     * CType : 0
     */

    private String Name;
    private String ID;
    private int CType;

    protected TopListModel(Parcel in) {
        Name = in.readString();
        ID = in.readString();
        CType = in.readInt();
    }

    public static final Creator<TopListModel> CREATOR = new Creator<TopListModel>() {
        @Override
        public TopListModel createFromParcel(Parcel in) {
            return new TopListModel(in);
        }

        @Override
        public TopListModel[] newArray(int size) {
            return new TopListModel[size];
        }
    };

    public String getName() {
        return Name;
    }

    public void setName(String Name) {
        this.Name = Name;
    }

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public int getCType() {
        return CType;
    }

    public void setCType(int CType) {
        this.CType = CType;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(Name);
        dest.writeString(ID);
        dest.writeInt(CType);
    }
}
